package com.personal.summaryofproject.utils.poi.bean;

import jxl.format.Colour;
import jxl.format.UnderlineStyle;
import jxl.write.WritableCellFormat;
import jxl.write.WritableFont;
import lombok.Data;

import java.io.Serializable;

/**
 * description: 需要设置特殊格式的单元格 <br>
 * date: 2020/4/18 23:54 <br>
 * author: wenjun.dai <br>
 * version: 1.0 <br>
 */
@Data
public class CellFormatBean implements Serializable {
    private static final long serialVersionUID = -8844341669186554121L;


    private String key;

    private String value;

    private WritableCellFormat cellFormat = new WritableCellFormat(
            new WritableFont(WritableFont.TIMES, 12, WritableFont.NO_BOLD, false,
                    UnderlineStyle.NO_UNDERLINE, Colour.RED));


    public CellFormatBean() {
    }

    public CellFormatBean(String key, String value, WritableCellFormat cellFormat) {
        this.key = key;
        this.value = value;
        this.cellFormat = cellFormat;
    }

    public CellFormatBean(String key, String value) {
        this.key = key;
        this.value = value;
    }

}
